<template>
  <div>
    <h2 v-color="color.color1">自定义指令1</h2>
    <h2 v-color="color.color2">自定义指令2</h2>
  </div>
</template>

<script setup lang="ts">
import {ref} from "vue";

const color = ref({
  color1: "red",
  color2: "pink",
});
</script>

<style></style>
